﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Phone_Client.Commands_Utils;

namespace Phone_Client.ViewModels
{
    public class SharingUserVM : IViewModelBase
    {
        #region Fields

        private String _username;
        private bool _isuserselected;

        #endregion

        #region Properties

        public String Username 
        {
            get { return _username; }
            set
            {
                if (_username == value) return;
                _username = value;
                RaisePropertyChanged("Username");
            }
        }

        public bool IsUserSelected 
        {
            get { return _isuserselected; }
            set
            {
                if (_isuserselected == value) return;
                _isuserselected = value;
                RaisePropertyChanged("IsUserSelected");
            }
        }

        #endregion

        #region Commands

        #endregion

        #region Commands Functions

        #endregion

        #region Functions

        #endregion

        #region Ctor

        public SharingUserVM(String username)
        {
            if (!String.IsNullOrWhiteSpace(username))
            {
                _username = username;
                _isuserselected = false;
            }
        }
        #endregion
    }
}
